﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Quản Lý Phòng Trọ</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
	require_once("connect.php");
	$result=mysql_query("select tenp from phong order by map");
	if(mysql_num_rows($result)==0)
		echo "Không có dữ liệu";
   	while($row=mysql_fetch_assoc($result))
	{
		?>
		<span class="room">
            <div class="label"> 
				<?php
            	    echo $row["tenp"];
                ?>
            </div>
        </span>
        <?php	
	}
    mysql_free_result($result);
	mysql_close($connect);
?>
</body>
</html>